//
//  MoreTableViewCell.m
//  Cartoon
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 YSZ. All rights reserved.
//

#import "MoreTableViewCell.h"
#import "PrefixHeader.pch"

@implementation MoreTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.titleLabel = [[UILabel alloc] init];
        self.namelabel = [[UILabel alloc] init];
        self.lastupLabel = [[UILabel alloc] init];
        self.bigImageView = [[UIImageView alloc] init];
        self.starView = [[StarView alloc] init];
        self.gradeLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_titleLabel];
        [self.contentView addSubview:_namelabel];
        [self.contentView addSubview:_lastupLabel];
        [self.contentView addSubview:_bigImageView];
        [self.contentView addSubview:_starView];
        [self.contentView addSubview:_gradeLabel];
    }
    return self;
    
    
    
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    
    _titleLabel.frame = CGRectMake(95 * WIDTH, 20 * HEIGHT, 260 * WIDTH , 20 * HEIGHT);
    _bigImageView.frame = CGRectMake(10 * WIDTH, 20 * HEIGHT, 75 * WIDTH, 100 * HEIGHT);
    _namelabel.frame = CGRectMake(95 * WIDTH, 40 * HEIGHT, 160 * WIDTH, 20 * HEIGHT);
    _namelabel.font = [UIFont systemFontOfSize:12];
    _namelabel.textColor = [UIColor lightGrayColor];
    _starView.frame = CGRectMake(95 * WIDTH, 80 * HEIGHT, 60 * WIDTH, 15 *HEIGHT);
    
    _lastupLabel.frame = CGRectMake(95 * WIDTH, 60 * HEIGHT, 160 * WIDTH, 20 * HEIGHT);
    _lastupLabel.font = [UIFont systemFontOfSize:12];
    _lastupLabel.textColor = [UIColor lightGrayColor];
    _gradeLabel.frame = CGRectMake(165 * WIDTH, 80 * HEIGHT, 30 *WIDTH, 20 *HEIGHT);
    _gradeLabel.font = [UIFont systemFontOfSize:12];
    _gradeLabel.textColor = [UIColor lightGrayColor];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
